package com.janchow.whisper.spi.consumer.demo;

import com.alibaba.dubbo.config.annotation.Reference;
import com.janchow.whisper.spi.demo.ITalkService;
import org.springframework.stereotype.Component;

/**
 * Created by Jange on 2016/5/25.
 */
@Component
public class TalkAction {

    @Reference(version = "1.0.0")
    private ITalkService talkService;

    public void doTalk(String content) {
        this.talkService.talk(content);
    }

    public void doSave() {
        this.talkService.saveUser();
    }
}
